/*      
 * 模块编号  
 * 功能描述 
 * 文件名 PaymentServiceImpl.java 
 * 作者 王磊 
 * 编写日期 2022年01月09日 
 */
package wl.demo.springcloud.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import wl.demo.springcloud.dao.PaymentDao;
import wl.demo.springcloud.entities.Payment;
import wl.demo.springcloud.service.PaymentService;

@Service
public class PaymentServiceImpl implements PaymentService
{
    @Resource
    private PaymentDao paymentDao;


    @Override
    public int create(Payment payment)
    {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id)
    {
        return paymentDao.getPaymentById(id);
    }
}
